const express = require('express')
const router = express.Router()

// 导入相关处理函数模块
const adminApi = require('../api/admin')

// 登录
router.post('/adminlogin', adminApi.adminlogin)

// 获取用户列表
router.get('/getadminlist', adminApi.getadminlist)

// 新添/修改用信息
router.post('/setadmininfo', adminApi.setadmininfo)

// 删除用户
router.post('/deladmininfo', adminApi.deladmininfo)


module.exports = router

